<?php

namespace app\model\user;

use think\Model;

class User extends Model
{
    //
    protected $pk = 'id';

    public function userRole()
    {
        return $this->hasOne('UserRole','role_id','role_id');
    }
}
